<template>
  <div class="page">
    <ul class="pagetop">
      <li v-for="(item, index) in page" :key="index">{{ item.num }}</li>
    </ul>
    <ul class="pagebtm">
      <li>第</li>
      <li class="dd">
        {{ num2 }}
      </li>
      <li>页</li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Page",
  props: {},
  data: function() {
    return {
      num2: "1",
      page: [
        { num: "<" },
        { num: "1" },
        { num: "2" },
        { num: "3" },
        { num: "4" },
        { num: ">" },
      ],
    };
  },
};
</script>
<style scoped>
.page {
  /* border: 1px solid #f00; */
  width: 330px;
  margin: 0 auto;
}
.page ul {
  overflow: hidden;
  width: 100%;
  margin: 1rem 0;
}
.page ul li {
  float: left;
}
.page .pagetop li {
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  border-radius: 40px;
  margin-right: 15px;
  background-color: #a40000;
  color: #fdfbfb;
}
.page .pagebtm {
  width: 144px;
  margin: 0 auto;
  height: 43px;
  line-height: 43px;
  text-align: center;
  font-size: 24px;
}
.page .pagebtm li {
  color: #9e290b;
  font-weight: 550;
}
.page .pagebtm .dd {
  width: 69px;
  height: 43px;
  background: #9e290b;
  border-radius: 22px;
  color: #fdfbfb;
  margin: 0 5%;
}
</style>
